package com.mk.settlement.service;

import java.util.List;

import com.mk.settlement.model.SettlementRelation;
import com.mk.settlement.model.SettlementRule;

public interface ISettlementRelationService {

    /**
     * 参数settlementRelation需要填的字段:
     * settlementTargetId,settlementTargetName,settlementRuleId(参考getAllRule返回值),settlementThreshold
     * @param settlementRelation
     * @return 成功true 失败false
     */
    public boolean addSettlementRelation(SettlementRelation settlementRelation);
    
    /**
     * 获取所有结算规则
     * @return 返回的SettlementRule实例中值包含id和description
     */
    public List<SettlementRule> getAllRule();
}
